$(function(){
  $('.managementTabs>.mt-left>ul>li').click(function(){
    switch($(this).index()){
      case 0 :
        localStorage.setItem('adress','../management/fundTransfer.html');
        break;
      case 1 :
        localStorage.setItem('adress','../management/dividendManagement.html');
        break;
      case 2 :
        localStorage.setItem('adress','../management/deliveryManagement.html');
        break;
      case 3 :
        localStorage.setItem('adress','../management/openList.html');
        break;
      case 4 :
        localStorage.setItem('adress','../management/reinvestList.html');
        break;
      case 5 :
        localStorage.setItem('adress','../management/withdrawList.html');
        break;
      case 6 :
        localStorage.setItem('adress','../management/rechargeList.html');
        break;
      case 7 :
        localStorage.setItem('adress','../management/manualRecharge.html');
        break;
      case 8 :
        localStorage.setItem('adress','../management/priceManagement.html');
        break;
    }
  })
  if($("div").hasClass("operateBtn")){
    $(".rl-table").height($(".managementTabs").height()-80-$(".operating").height());
    $(window).resize(function () {
      $(".rl-table").height($(".managementTabs").height()-80-$(".operating").height());
    });
  }else{
    $(".rl-table").height($(".managementTabs").height()-30-$(".operating").height());
    $(window).resize(function () {
      $(".rl-table").height($(".managementTabs").height()-30-$(".operating").height());
    });
  }
});
